package com.isdepci.project.carbon.domain;

import com.isdepci.framework.web.domain.BaseEntity;
import com.isdepci.project.factor.domain.ProductConsumables;

import java.math.BigDecimal;
import java.util.List;

/**
 * 产品碳足迹-产品排放行为记录对象 a_product_carbon_consumables
 *
 * @author isdepci
 * @date 2024-11-11
 */
public class ProductCarbonConsumables extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;
    private List<Long> stageIds;
    /**
     * 产品ID
     */
    private Long productId;
    private Long productCarbonId;

    /**
     * 阶段ID
     */
    private Long stageId;

    /**
     * 因子分类
     */
    private String name;
    private String categorizeCode;

    /**
     * 数量
     */
    private BigDecimal quantity;

    /**
     * 系数
     */
    private BigDecimal factorNum;

    /**
     * 单位
     */
    private String factorUnit;

    /**
     * 1上游排放  2下游排放
     */
    private Integer factorType;


    /** 所属企业 */
    private Long enterpriseId;

    /** 产品批次 */
    private String productBatch;

    public ProductCarbonConsumables() {}

    public ProductCarbonConsumables(Long productCarbonId,Long stageId,ProductConsumables consumable) {
        this.productCarbonId=productCarbonId;
        this.productId=consumable.getProductId();
        this.name=consumable.getName();
        this.stageId=stageId;
        this.categorizeCode=consumable.getCategorizeCode();
        this.quantity=consumable.getQuantity();
        this.factorNum=consumable.getFactorNum();
        this.factorUnit=consumable.getFactorUnit();
        this.factorType=consumable.getFactorType();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Long enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getProductBatch() {
        return productBatch;
    }

    public void setProductBatch(String productBatch) {
        this.productBatch = productBatch;
    }

    public List<Long> getStageIds() {
        return stageIds;
    }

    public void setStageIds(List<Long> stageIds) {
        this.stageIds = stageIds;
    }
    public Long getProductCarbonId() {
        return productCarbonId;
    }

    public void setProductCarbonId(Long productCarbonId) {
        this.productCarbonId = productCarbonId;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setStageId(Long stageId) {
        this.stageId = stageId;
    }

    public Long getStageId() {
        return stageId;
    }

    public void setCategorizeCode(String categorizeCode) {
        this.categorizeCode = categorizeCode;
    }

    public String getCategorizeCode() {
        return categorizeCode;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public void setFactorNum(BigDecimal factorNum) {
        this.factorNum = factorNum;
    }

    public BigDecimal getFactorNum() {
        return factorNum;
    }

    public void setFactorUnit(String factorUnit) {
        this.factorUnit = factorUnit;
    }

    public String getFactorUnit() {
        return factorUnit;
    }

    public void setFactorType(Integer factorType) {
        this.factorType = factorType;
    }

    public Integer getFactorType() {
        return factorType;
    }


}
